package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.GoodsMapper;
import com.loser.csp.dal.model.Goods;
import com.loser.csp.service.backmanager.GoodsServices;
@Component
public class GoodsServicesImpl implements GoodsServices {
    @Autowired
    private GoodsMapper  goodsMapper;
    @Override
    public int deleteByProductid(Integer productid) {
        return goodsMapper.deleteByProductid(productid);
    }

    @Override
    public int insert(Goods record) {
        return goodsMapper.insert(record);
    }

    @Override
    public Goods selectByProductid(Integer productid) {
        return goodsMapper.selectByProductid(productid);
    }

    @Override
    public int updateByProduct(Goods record) {
        return goodsMapper.updateByProduct(record);
    }
    
    

}
